import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//省
export function getProvince() {
  return request({
    url: '/district/province/list',
    method: 'get',
  })
}
//市
export function getCity(id) {
    return request({
      url: '/district/city/'+id,
      method: 'get',
    })
  }
//区
export function getArea(id) {
    return request({
      url: '/district/area/'+id,
      method: 'get',
    })
  }

  //小程序权限菜单列表
  
  export function getAppletList(id) {
    return request({
      url: '/applet/list/belong/'+id,
      method: 'get',
    })
  }
  //医护类型
  export function getStaffTypeList() {
    return request({
      url: '/staff/type/list',
      method: 'get',
    })
  }
  //医护职称
  export function getStaffTitleList() {
    return request({
      url: '/staff/title/list',
      method: 'get',
    })
  }
  
//治疗项目列表
export function getTreatmentList() {
  return request({
    url: '/treatment/list',
    method: 'get',
  })
}

//服务商信息

export function getProvidersList() {
  return request({
    url: '/hospital/get/providers',
    method: 'get',
  })
}
//导入
export function importExcel(formData) {
  return request({
    url: '/device/import',
    method: 'post',
    responseType:'blob',
	  // timeout:60000,
    headers: {'Content-Type': 'multipart/form-data'},
    data:formData
  })
}